<?php
	require_once("include/jara_fns.php");
	try {
		jara_page_start("Homepage");
		jara_write_posts();
		jara_page_end();
	}
	catch(JaraDatabaseException $ex) {
?>
<p>
	A database error occured during the process of creating this page.
</p>
<p>
	Error type: <?php echo (($ex->getSqlStage() == 1) ? "MySQL connection error" : "MySQL query error"); ?><br />
	Error message: &quot;<?php echo $ex->getSqlMsg(); ?>&quot; [code <?php echo $ex->getSqlCode(); ?>]
</p>
<?php
		jara_page_end();
	}
	catch(JaraGeneralException $ex) {
?>
<p>
	A general error occured during the process of creating this page.
</p>
<p>
	Error message: &quot;<?php echo $ex->getMessage(); ?>&quot;
</p>
<?php
		jara_page_end();
	}
?>